package com.briansteen.sketches;

import java.util.List;

import cc.creativecomputing.CCApp;
import cc.creativecomputing.CCApplicationManager;
import cc.creativecomputing.CCApplicationSettings;
import cc.creativecomputing.graphics.CCGraphics;
import cc.creativecomputing.graphics.font.CCFontIO;
import cc.creativecomputing.graphics.font.CCOutlineFont;
import cc.creativecomputing.graphics.texture.CCTexture;
import cc.creativecomputing.math.CCVector3f;

import com.briansteen.painterface.BasicColor;
import com.briansteen.painterface.NerdColor;

public class PainterfaceWithMouse extends CCApp {
	
	private static final long serialVersionUID = 1L;

	private List<CCVector3f> _myTextPath;
	private BasicColor color;
	
	public PainterfaceWithMouse(CCApplicationSettings theSettings) {
		super(theSettings);
	}
	
	public void setup(){
		frameRate(30);
		g.clearColor(1f);
//		g.cameraPosition(0, 0, 1100);
		
		color = new BasicColor(0,0,0);
		color.red = 0;
		color.green = 0;
		color.blue = .3f;
	}
	
	public void draw(){
		g.noDepthTest();
		
		color.blue = (float)Math.sin(System.currentTimeMillis() * .001)*.25f + .3f;
		
		color.draw(g, mouseX -width*.5f, -mouseY + height*.5f);
		color.drawParticles(g);
	}
	
	public static void main(String[] args){
		final CCApplicationManager<PainterfaceWithMouse> _myManager = new CCApplicationManager<PainterfaceWithMouse>(PainterfaceWithMouse.class);
		_myManager.settings().antialiasing(8);
		_myManager.settings().size(800, 600);
		// _myManager.settings().undecorated(true);
		_myManager.start();
	}
	
}
